package com.xsd.xsdhouduan.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 注册请求DTO
 */
@Data
public class RegisterRequest {
    
    @NotBlank(message = "学号不能为空")
    private String studentId;
    
    @NotBlank(message = "姓名不能为空")
    private String name;
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    @NotBlank(message = "学校不能为空")
    private String schoolName;
    
    private Integer sex;
    
    @Email(message = "邮箱格式不正确")
    private String email;
    
    private String code;
}
